package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.AssetsDO;
import com.pipi.sso.dao.query.AssetsQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Assets.
 */
public interface AssetsManager {
    /**
     * query count by query condition.
     */
    int countByQuery(AssetsQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AssetsQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AssetsDO record);

    /**
     * insert selective.
     */
    long insertSelective(AssetsDO record);

    /**
     * select by query condition.
     */
    List<AssetsDO> selectByQuery(AssetsQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<AssetsDO> selectByQueryWithPage(AssetsQuery query);

    /**
     * select by primary key.
     */
    AssetsDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( AssetsDO record,  AssetsQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(AssetsDO record, AssetsQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AssetsDO record);
}